package com.sys.entity;

import com.bhudy.annotation.ManyToOne;
import com.bhudy.annotation.PrimaryKey;

/**
 * @Author com.bhudy
 * @Description 角色关联菜单
 * @Date 2019-10-30 23:09:37
 */
public class SysRoleMenu {

    @PrimaryKey
    private Long id;    //
    private Long roleId;    //角色ID
    private Long menuId;    //菜单ID
    private Integer get;
    private Integer post;
    private Integer put;
    private Integer delete;
    @ManyToOne("menuId")
    private SysMenu sysMenu;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
     }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
     }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
     }

    public SysMenu getSysMenu() {
        return sysMenu;
    }

    public void setSysMenu(SysMenu sysMenu) {
        this.sysMenu = sysMenu;
    }

    public Integer getGet() {
        return get;
    }

    public void setGet(Integer get) {
        this.get = get;
    }

    public Integer getPost() {
        return post;
    }

    public void setPost(Integer post) {
        this.post = post;
    }

    public Integer getPut() {
        return put;
    }

    public void setPut(Integer put) {
        this.put = put;
    }

    public Integer getDelete() {
        return delete;
    }

    public void setDelete(Integer delete) {
        this.delete = delete;
    }
}
